package com.cennavi.buss.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.cennavi.buss.service.imp.IContactUsService;
import com.cennavi.minemap.bean.MessageBean;

@RestController
@RequestMapping("/service/contact")
public class ContactUsController {
	@Autowired
	private IContactUsService iContactUsService;
	
	@RequestMapping(method = RequestMethod.GET, value = "/send", produces = "application/json;charset=UTF-8")
	public @ResponseBody MessageBean sendMail(@RequestBody String json) throws Exception {
		return iContactUsService.sendMail(json);
	}
	
}
